package com.nus.fellowmark.modules.assignment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nus.fellowmark.common.utils.PageUtils;
import com.nus.fellowmark.entity.GradeEntity;
import com.nus.fellowmark.modules.assignment.dto.GradeDTO;
import com.nus.fellowmark.modules.assignment.vo.GradeAsgVO;
import com.nus.fellowmark.modules.assignment.vo.GradeStuVO;
import com.nus.fellowmark.modules.assignment.vo.GradeVO;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author Chen Ruoyi
 * @email chenruoyisz@gmail.com
 * @date 2023-02-10  
 */
public interface GradeService extends IService<GradeEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Boolean gradeAssignment(GradeDTO gradeDTO);

    GradeVO listGradeByPairIdAndRubricId(Integer pairId, Integer rubricId);

    List<GradeEntity> listGradeByPairId(Integer pairId);

    List<GradeAsgVO> listGradeByAssignmentId(Integer assignmentId);

    List<GradeStuVO> listGradeByStuId(Integer stuId, Integer AssignmentId);

}

